﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KC.ExtensionMethods;

namespace KC.ExtensionMethods
{
	public static class Numbers
	{
		#region Int methods

		public static TimeSpan Milliseconds(this int input) { return TimeSpan.FromMilliseconds(input); }
		public static TimeSpan Seconds(this int input) { return TimeSpan.FromSeconds(input); }
		public static TimeSpan Minutes(this int input) { return TimeSpan.FromMinutes(input); }
		public static TimeSpan Hours(this int input) { return TimeSpan.FromHours(input); }
		public static TimeSpan Days(this int input) { return TimeSpan.FromDays(input); }
		public static TimeSpan Months(this int input) { return TimeSpan.FromDays(input * 30); }
		public static TimeSpan Years(this int input) { return TimeSpan.FromDays(365 * input); }

		#endregion Int methods
	}
}
